feat: add cmd substitution for config variables#8917
feat: add cmd substitution for config variables#8917nikaro wants to merge 1 commit intoanomalyco:devfrom
Conversation
|
The following comment was made by an LLM, it may be inaccurate: Potential Duplicate Found:PR #8198: feat: add apiKeyCommand for dynamic API key retrieval Why it might be related: Both PRs appear to address the same problem—dynamically retrieving credentials/API keys at runtime rather than storing them statically in configuration. PR #8198 uses |
| } | ||
| const command = match.replace(/^\{exec:/, "").replace(/\}$/, "") | ||
| try { | ||
| const result = await Bun.$`sh -c ${command}`.text() |
|
i have no say in this, but it would be fantastic if this could become |
I don't mind, I actually had some hesitation between |
3702bdf to
8bafe55
Compare
83fd4ee to
a096b5c
Compare
a096b5c to
34daa43
Compare
00637c0 to
71e0ba2
Compare
f1ae801 to
08fa7f7
Compare
34daa43 to
6231b23
Compare
What does this PR do?
Add an "cmd substitution" that allow to use password manager to pass credentials in configuration.
Fixes #231
How did you verify your code works?
bun devwith some{cmd:op read ...}in my configuration file